﻿Namespace Backup
    Public Class StoredFile
        Inherits BackedUpFileInfoBase
        Public Id As Long
        Public JobId As Integer
        Public StoredAs As String
        Public ContractId As Integer
    End Class

    Public Class BackedUpFileContainerInfo
        Inherits BackedUpFileInfoBase
        Public ContainerSize As Long
        Public ContainerPath As String
        Public Compression As CompressionType
        Public Encryption As EncryptionType
    End Class

    Public MustInherit Class BackedUpFileInfoBase
        Public FilePath As String
        Public FileSize As Long
        Public CreationTimeUtc As Date
        Public LastWriteTimeUtc As Date
        Public Version As Integer
        Public Attributes As System.IO.FileAttributes
    End Class

    '<Flags()> Public Enum StoredFileAttribute As Integer
    '    [ReadOnly] = 2 ^ 0
    '    [System] = 2 ^ 1
    '    [Hidden] = 2 ^ 2
    '    [IsFolder] = 2 ^ 3
    '    [Deleted] = 2 ^ 4
    'End Enum

End Namespace